﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Top.Api;
using Top.Api.Request;
using Top.Api.Response;

namespace BigFishConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            //验证码${code}，您正在进行${product}身份验证，打死不要告诉别人哦！
            string url = "http://gw.api.taobao.com/router/rest";
            string appkey = "23304896";
            string secret = "694ef9cb393e9dd0eba9a67c2d28aba4";
            ITopClient client = new DefaultTopClient(url, appkey, secret);
            AlibabaAliqinFcSmsNumSendRequest req = new AlibabaAliqinFcSmsNumSendRequest
            {
                Extend = "123456",
                SmsType = "normal",
                SmsFreeSignName = "活动验证",
                SmsParam = "{\"code\":\"1234\",\"product\":\"alidayu\"}",
                RecNum = "18501685825",
                SmsTemplateCode = "SMS_5080089"
            };
            AlibabaAliqinFcSmsNumSendResponse rsp = client.Execute(req);
            Console.WriteLine(rsp.Body);
            Console.ReadLine();
        }
    }
}
